/// id : 2
/// type : "3"
/// question : "病人病史"
/// option1 : "高血压"
/// option2 : "糖尿病"
/// option3 : "脑卒中"
/// option4 : "心脏病"
/// option5 : "无"

class InquiryEntity {
  InquiryEntity({
      this.id, 
      this.type, 
      this.question, 
      this.option1, 
      this.option2, 
      this.option3, 
      this.option4, 
      this.testAnswer,
      this.option5,});

  InquiryEntity.fromJson(dynamic json) {
    id = json['id'];
    type = json['type'];
    question = json['question'];
    option1 = json['option1'];
    option2 = json['option2'];
    option3 = json['option3'];
    option4 = json['option4'];
    option5 = json['option5'];
    testAnswer = json['testAnswer'];
  }
  num? id;
  String? type;
  String? question;
  String? option1;
  String? option2;
  String? option3;
  String? option4;
  String? option5;
  String? testAnswer;
InquiryEntity copyWith({  num? id,
  String? type,
  String? question,
  String? option1,
  String? option2,
  String? option3,
  String? option4,
  String? option5,
  String? testAnswer,
}) => InquiryEntity(  id: id ?? this.id,
  type: type ?? this.type,
  question: question ?? this.question,
  option1: option1 ?? this.option1,
  option2: option2 ?? this.option2,
  option3: option3 ?? this.option3,
  option4: option4 ?? this.option4,
  option5: option5 ?? this.option5,
  testAnswer: testAnswer ?? this.testAnswer,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['type'] = type;
    map['question'] = question;
    map['option1'] = option1;
    map['option2'] = option2;
    map['option3'] = option3;
    map['option4'] = option4;
    map['option5'] = option5;
    map['testAnswer'] = testAnswer;
    return map;
  }

}